﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="panel1" runat="server">
<link rel="stylesheet" href="../../themes/default/script/KinderEditer/themes/default/default.css" />

<script charset="utf-8" src="../../themes/default/script/KinderEditer/kindeditor-min.js"></script>

<script charset="utf-8" src="../../themes/default/script/KinderEditer/lang/zh_CN.js"></script>
<script type="text/javascript">
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="ctl00$MainerRegion$ZSPG_ZZBCJFHAddControl$_$txt特殊备注"]', {
			allowFileManager : true
		});
	});
    </script>
    <script type="text/javascript">
    function displaybutton(){
        document.getElementById("button1").style.display='none';
    }
    function select_project(type) {
        var temp='<%=HttpContext.Current.Request["PID"] %>';
        var url = '../BCSSManage/ZS_SelectUser.aspx?TYPE=' + type + '&PID='+temp+'&rd=' + Math.random();
        var feature = "dialogWidth:" + 1000 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";
        var project_info = window.showModalDialog(url, '', feature);
        if (project_info != undefined && project_info.length > 1) {
            document.getElementById('<%=产权人.ClientID %>').value = project_info[1];
            document.getElementById('<%=丘号.ClientID %>').value = project_info[2];
            document.getElementById('<%=房屋坐落.ClientID %>').value = project_info[3];
            document.getElementById('<%=房屋权证编号.ClientID %>').value = project_info[4];
            document.getElementById('<%=房屋面积.ClientID %>').value = project_info[5];
            document.getElementById('<%=txtZSPID.ClientID %>').value = project_info[0];
            document.getElementById('<%=承租人.ClientID %>').value = project_info[6];
            document.getElementById('<%=txtZZ所在层次.ClientID %>').value = project_info[7];
            document.getElementById('<%=土地权证编号.ClientID %>').value = project_info[8];
            document.getElementById('<%=土地面积.ClientID %>').value = project_info[9];
            document.getElementById('<%=区位级别.ClientID %>').value = project_info[10];
        }
    }
    function checkNull() {
        var t1 = document.getElementById('<%=产权人.ClientID %>').value;
        if (t1 == null || t1 == "") {
            alert('请点击选择人员进行人员选择！');
            return false;
        } else {
        return true;
        }
    }
    function OpenFileUpload(cqid,cid,pid) {
        window.open('../ZSManage/FileUpload1.aspx?usetype=11&pid='+pid+'&cid='+cid+'&cqid=' + cqid, '文件上传', 'height=600px,width=800px;toolbar =no,menubar=no, scrollbars=yes, resizable=no, location=no, status=yes');
    }
    function ckNumber(obj) {
        var tt = 'ctl00_MainerRegion_ZSPG_ZZBCJFHAddControl___';
        var t1 = tt + obj;
        var ctrlTemp = document.getElementById(t1);
        if (ctrlTemp != null) {
            if (isNaN(ctrlTemp.value)) {
                alert("不是一个有效的数字，请重新输入 ！");
                ctrlTemp.value = '';
            }
            var tt=ctrlTemp.value;
            ctrlTemp.value=trim(tt);
        }
    }
    function ltrim(s){ 
        return s.replace( /^\s*/,""); 
    } 
    function rtrim(s){ 
        return s.replace( /\s*$/,""); 
    } 
    function trim(s){ 
        return ltrim(rtrim(s)); 
    }
    function showsomebz()
    {
        var tt=document.getElementById("tr1");
        if(tt.style.display=='none'){tt.style.display='block';}
        else if(tt.style.display=='block'){tt.style.display='none';}
    }   
    </script>
    
    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                    &nbsp;住宅房屋征收补偿金额分户评估表 </font>
            </td>
        </tr>
    </table>
    <table border="1" cellpadding="0" cellspacing="0" id="compensationfundestimate" style="border-collapse: collapse;
        table-layout: fixed; width: 99%; text-align: center;" class="window_tab_list">
        <tr>
            <th colspan="11" style="text-align: center; line-height: 20px;">
                住宅房屋征收补偿金额分户评估表
            </th>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                房屋坐落
            </td>
            <td colspan="2">
                <asp:TextBox ID="房屋坐落" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
            <td colspan="2">
                产权人
            </td>
            <td colspan="2">
                <asp:TextBox ID="产权人" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
            <td>
                承租人
            </td>
            <td colspan="3">
                <asp:TextBox ID="承租人" runat="server" onfocus="this.blur()" Width="99%"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td rowspan="2">
                权证编号
            </td>
            <td>
                房屋
            </td>
            <td colspan="3">
                <asp:TextBox ID="房屋权证编号" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
            <td rowspan="2">
                面积(m2)
            </td>
            <td>
                房屋
            </td>
            <td colspan="4">
                <asp:TextBox ID="房屋面积" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                土地
            </td>
            <td colspan="3">
                <asp:TextBox ID="土地权证编号" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
            <td>
                土地
            </td>
            <td colspan="4">
                <asp:TextBox ID="土地面积" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                丘号
            </td>
            <td colspan="2">
                <asp:TextBox ID="丘号" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
            <td colspan="2">
                区位级别
            </td>
            <td colspan="2">
                <asp:TextBox ID="区位级别" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>
            <td colspan="4">
            </td>
            <%--<td>
                所在层次
            </td>
            <td colspan="2">
                <asp:TextBox ID="所在层次" runat="server" onfocus="this.blur()"></asp:TextBox>
            </td>--%>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                所在层次
            </td>
            <td>
                <asp:TextBox ID="txtZZ所在层次" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                结构等级
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtZZ结构等级" runat="server"></asp:TextBox>
            </td>
            <td>
                朝向
            </td>
            <td>
                <asp:TextBox ID="txtZZ朝向" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                成套与否
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtZZ成套与否" runat="server" Width="99%"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                所在层次
            </td>
            <td>
                <asp:TextBox ID="txtZZ所在层次2" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                结构等级
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtZZ结构等级2" runat="server"></asp:TextBox>
            </td>
            <td>
                朝向
            </td>
            <td>
                <asp:TextBox ID="txtZZ朝向2" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                成套与否
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtZZ成套与否2" runat="server" Width="99%"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                所在层次
            </td>
            <td>
                <asp:TextBox ID="txtZZ所在层次3" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                结构等级
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtZZ结构等级3" runat="server"></asp:TextBox>
            </td>
            <td>
                朝向
            </td>
            <td>
                <asp:TextBox ID="txtZZ朝向3" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                成套与否
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtZZ成套与否3" runat="server" Width="99%"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                所在层次
            </td>
            <td>
                <asp:TextBox ID="txtZZ所在层次4" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                结构等级
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtZZ结构等级4" runat="server"></asp:TextBox>
            </td>
            <td>
                朝向
            </td>
            <td>
                <asp:TextBox ID="txtZZ朝向4" runat="server" Width="90px"></asp:TextBox>
            </td>
            <td>
                成套与否
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtZZ成套与否4" runat="server" Width="99%"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                基准价格(元)
            </td>
            <td>
                结构修正系数
            </td>
            <td>
                成新修正系数
            </td>
            <td>
                朝向修正系数
            </td>
            <td>
                层次修正系数
            </td>
            <td>
                成套修正系数
            </td>
            <td>
                区位修正系数
            </td>
            <td>
                功能修正系数
            </td>
            <td>
                交易情况系数
            </td>
            <td>
                评估单价(元)
            </td>
            <td>
                附属物补偿总价(元)
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                <asp:TextBox ID="txtZZ基准价格" runat="server" Width="99%" onchange="ckNumber('txtZZ基准价格')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ结构修正系数" runat="server" Width="99%" onchange="ckNumber('txtZZ结构修正系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ成新修正系数" runat="server" Width="99%" onchange="ckNumber('txtZZ成新修正系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ朝向修正系数" runat="server" Width="99%" onchange="ckNumber('txtZZ朝向修正系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ层次修正系数" runat="server" Width="99%" onchange="ckNumber('txtZZ层次修正系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ成套修正系数" runat="server" Width="99%" onchange="ckNumber('txtZZ成套修正系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ区位修正系数" runat="server" Width="99%" onchange="ckNumber('txtZZ区位修正系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ功能修正系数" runat="server" Width="99%" onchange="ckNumber('txtZZ功能修正系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ交易情况系数" runat="server" Width="99%" onchange="ckNumber('txtZZ交易情况系数')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ评估单价" runat="server" Width="99%" onchange="ckNumber('txtZZ评估单价')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ附属物补偿总价" runat="server" Width="99%" onchange="ckNumber('txtZZ附属物补偿总价')"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td rowspan="2" colspan="2">
                评估总价(元)
            </td>
            <td colspan="2">
                地大于房(元)
            </td>
            <td rowspan="2">
                最低总额保障补差(元)
            </td>
            <td rowspan="2">
                补偿金额合计(元)
            </td>
            <td rowspan="2">
                产权人补偿款(元)
            </td>
            <td rowspan="2">
                承租人补偿款(元)
            </td>
            <td rowspan="2" colspan="3" onclick="javascript:showsomebz()">
                备注
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td>
                单价(元)
            </td>
            <td>
                总价(元)
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td colspan="2">
                <asp:TextBox ID="txtZZ评估总价" runat="server" Width="99%" onchange="ckNumber('txtZZ评估总价')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ地大于房单价" runat="server" Width="99%" onchange="ckNumber('txtZZ地大于房单价')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ地大于房总价" runat="server" Width="99%" onchange="ckNumber('txtZZ地大于房总价')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ最低总额保障补差" runat="server" Width="99%" onchange="ckNumber('txtZZ最低总额保障补差')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ补偿金额合计" runat="server" Width="99%" onchange="ckNumber('txtZZ补偿金额合计')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ产权人补偿款" runat="server" Width="99%" onchange="ckNumber('txtZZ产权人补偿款')"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtZZ承租人补偿款" runat="server" Width="99%" onchange="ckNumber('txtZZ承租人补偿款')"></asp:TextBox>
            </td>
            <td colspan="3" onclick="javascript:showsomebz()">
                <asp:TextBox ID="txtZZ备注" runat="server" Width="99%"></asp:TextBox>
            </td>
        </tr>
        <tr style='height: 15.0pt'>
            <td colspan="8">
            </td>
            <td>
                日期：
            </td>
            <td>
                <CBW:MPCalendar ID="txtZZ日期" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="txtZZ空输入框" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr id="tr1" style="display:none;">
            <td colspan="11">
                <asp:TextBox ID="txt特殊备注" runat="server" TextMode="MultiLine"  style="width: 100%; height: 500px;visibility: hidden;"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="11">
                <asp:Button ID="btnUpload" runat="server" Text="附件上传" />&nbsp;&nbsp;
                <input id="button1" type="button" value="选择人员" onclick="select_project('zzfh')" />&nbsp;&nbsp;
                <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return checkNull();" />&nbsp;&nbsp;
                <input type="button" value="返回" onclick="javascript:window.location.href=('ZSPG_ZZBCJFHInfo.aspx?PID=<%=HttpContext.Current.Request["PID"] %>');" />
            </td>
        </tr>
    </table>
    <div style="display: none;">
        <asp:TextBox ID="txtPID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtZSPID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txt评估分户类型" runat="server" Text="0"></asp:TextBox>
    </div>
    <CBW:MPPersistence ID="Persistence1" runat="server">
    </CBW:MPPersistence>
</asp:Panel>
